﻿namespace EventBusDemo.EventBus.Abstractions.Local;

public interface ILocalEventBus
{
    Task Publish(IDomainEvent domainEvent, CancellationToken cancellationToken = default);

    Task Publish<T>(T domainEvent, CancellationToken cancellationToken = default)
        where T : IDomainEvent;
}